.schedule-page {
  min-height: 100vh;
  background: #f8f9fa;
  padding-bottom: 20px;
}

.schedule-header {
  background: white;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.back-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.schedule-content {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 训练信息卡片 */
.training-info-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.training-info {
  display: flex;
  gap: 12px;
  padding: 16px;
}

.training-cover {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.training-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.training-title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin: 0;
  line-height: 1.4;
}

.training-meta {
  display: flex;
  gap: 16px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #666;
}

.meta-item svg {
  font-size: 14px;
  color: #ff6b35;
}

/* 日期选择区域 */
.date-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.section-title svg {
  font-size: 18px;
  color: #ff6b35;
}

.calendar-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* 选中日期显示 */
.selected-date {
  background: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.date-display {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #333;
}

.date-display svg {
  font-size: 16px;
  color: #ff6b35;
}

/* 时间段选择 */
.time-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.time-slot {
  background: white;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  padding: 16px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  position: relative;
}

.time-slot:hover:not(.unavailable):not(.selected) {
  border-color: #ff6b35;
  background: #fff5f2;
}

.time-slot.selected {
  background: #ff6b35;
  border-color: #ff6b35;
  color: white;
}

.time-slot.unavailable {
  background: #f5f5f5;
  border-color: #e0e0e0;
  color: #999;
  cursor: not-allowed;
}

.unavailable-text {
  font-size: 10px;
  color: #999;
  margin-top: 2px;
}

/* 预定操作区域 */
.booking-actions {
  margin-top: 20px;
  padding: 0 4px;
}

/* 加载状态 */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  font-size: 16px;
  color: #666;
}

/* 响应式设计 */
@media (max-width: 375px) {
  .time-slots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .training-info {
    flex-direction: column;
    text-align: center;
  }
  
  .training-cover {
    width: 60px;
    height: 60px;
    align-self: center;
  }
}

/* 动画效果 */
.time-slot {
  animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.schedule-content > * {
  animation: slideInLeft 0.4s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
